﻿@model Solution.Business.Entities.KhungGia

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>KhungGia</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name, "Tên Giá :")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
             <span style="color:red;">*</span>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TrId, "Thuộc loại giao dịch :")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TrId)
        <select id="TrId" name="TrId">
            <option value="0">Select...</option>
            <option value="1">Bán BĐS</option>
            <option value="2">Mua BĐS</option>
            <option value="3">Cho thuê BĐS</option>
            <option value="4">Cần thuê BĐS</option>
        </select>
             <span style="color:red;">*</span>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MinPrice, "Min Price :")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MinPrice)
            @Html.ValidationMessageFor(model => model.MinPrice)
             <span style="color:red;">*</span>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaxPrice, "Max Price :")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaxPrice)
            @Html.ValidationMessageFor(model => model.MaxPrice)
             <span style="color:red;">*</span>
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
